<template>
  <div class="header">
    <div class="customer">
      <div class="img">
        <img class="avatar"
             src="https://s1.ax1x.com/2022/07/25/jx9ehV.png" />
      </div>
      <div class="info">
        <div class="title">
          <img src="@/assets/img/brand@2x.png" /> <span>粥品香坊</span>
        </div>
        <div class="delivery">蜂鸟专送/38分钟送达</div>
        <div class="full">在线支付</div>
      </div>
      <div class="num">
        <span>5个</span>
        <span>></span>
      </div>
    </div>
    <div class="coupon">
      <div class="box">
        <div class="left">¥2</div>
        <div class="right">兑</div>
      </div>
    </div>
    <div class="notice">
      <img src="@/assets/img/bulletin@2x.png" />
      <span>粥品香坊其烹饪粥料的秘方源于中国干年古法，再融和现代制作工艺</span>
      <span>&gt;</span>
    </div>

  </div>
</template>

<script>
export default {
}
</script>

<style lang="less" scoped>
.coupon > .box {
  display: flex;
  height: 0.8rem;
  line-height: 0.8rem;
  text-align: center;
}

.coupon > .box > .left {
  padding: 0px 0.4rem;
  font-size: 0.5333rem;
  border-right: 0.5px dashed rgb(251, 208, 205);
  border-radius: 0.1067rem;
  color: rgb(255, 249, 242);
  background-color: rgb(255, 110, 87);
}
.right {
  width: 0.8rem;
  font-size: 0.4533rem;
  border-radius: 0.1067rem;
  color: rgb(255, 249, 247);
  background-color: rgb(255, 64, 63);
}
.header {
  height: 4.8rem;
  width: 100%;
  color: rgb(255, 255, 255);
  position: relative;
  background-color: rgba(7, 17, 27, 0.5);
}
.header::before {
  height: 4.8rem;
  content: '';
  width: 100%;
  position: absolute;
  background-size: 100% 4.8rem;
  background-image: url(https://s1.ax1x.com/2022/07/25/jx9ehV.png);
  background-repeat: no-repeat;
  filter: blur(2px);
  z-index: -1;
}
.customer {
  height: 2.9333rem;
  display: flex;
  position: relative;
  align-items: center;
}
.info {
  height: 1.8667rem;
  flex: 2;
  margin-left: 0.5333rem;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
}
.coupon {
  height: 1.0667rem;
  display: flex;
  padding-left: 0.5333rem;
  align-items: center;
}
.img {
  width: 2.4rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.title {
  height: 0.6667rem;
  position: relative;
  font-size: 0.5333rem;
}
.delivery,
.full {
  height: 0.5333rem;
  line-height: 0.5333rem;
}
.delivery {
  font-size: 0.4rem;
}
.full {
  margin-top: 0.08rem;
  font-size: 0.32rem;
}

.title > img {
  height: 0.5333rem;
  position: absolute;
  top: 0px;
}
.title > span {
  margin-left: 1.0667rem;
}
.notice {
  height: 0.8rem;
  font-size: 0.32rem;
  line-height: 0.8rem;
  background-color: rgba(7, 17, 27, 0.2);
  position: relative;
  display: flex;
}
.notice > img {
  position: absolute;
  top: 0.16rem;
  left: 0.4rem;
  width: 0.8rem;
}
.notice > span:nth-child(2) {
  margin-left: 1.3333rem;
  overflow: hidden; /*超出隐藏*/
  text-overflow: ellipsis; /*隐藏后添加省略号*/
  white-space: nowrap; /*强制不换行*/
  width: 80%;
}
.notice > span:nth-child(3) {
  padding: 0px 0.1333rem;
}
.avatar {
  height: 1.8667rem;
  // margin-top: 0.5867rem;
}
.num {
  width: 1.3333rem;
  height: 0.6667rem;
  border-radius: 0.6667rem;
  background-color: rgba(7, 17, 27, 0.5);
  position: absolute;
  bottom: 0.5333rem;
  right: 0.5333rem;
  text-align: center;
  line-height: 0.6667rem;
  font-size: 0.2667rem;
}
.num > span:nth-child(2) {
  margin-left: 0.08rem;
}
</style>